﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CTPAdapter;

namespace CTPDemo.Trader
{
    interface TraderApiInter
    {
        /// <summary>
        /// 用户登录请求
        /// <summary>
        void ReqUserLogin();

        /// <summary>
        /// 投资者结算结果确认
        /// <summary>
        void ReqSettlementInfoConfirm();

        /// <summary>
        /// 请求查询合约
        /// <summary>
        void ReqQryInstrument();

        /// <summary>
        /// 请求查询资金账户
        /// <summary>
        void ReqQryTradingAccount();

        /// <summary>
        /// 请求查询投资者持仓
        /// <summary>
        void ReqQryInvestorPosition();

        /// <summary>
        /// 报单录入请求
        /// <summary>
        void ReqOrderInsert();

        /// <summary>
        /// 报单操作请求
        /// <summary>
        void ReqOrderAction(CSCThostFtdcOrderField pOrder);

        /// <summary>
        /// 登出请求
        /// <summary>
        void ReqUserLogout();

        ///// <summary>
        /////  是否收到成功的响应
        ///// <summary>  
        //bool IsErrorRspInfo(CSCThostFtdcRspInfoField pRspInfo);
        ///// <summary>
        /////  是否我的报单回报
        ///// <summary>
        //bool IsMyOrder(CSCThostFtdcOrderField pOrder);

        ///// <summary>
        /////  是否正在交易的报单
        ///// <summary>
        //bool IsTradingOrder(CSCThostFtdcOrderField pOrder);
    }
}
